package com.wei.czz.common.property;

import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-06-22 12:10:25
 * className: SmsProperty
 * version: 1.0
 * description:
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "spring.mail")
@Validated
public class MailProperty extends BaseEntity {

    /**
     * 是否开启发送功能[true-是 false-否]
     */
    @NotNull(message = "是否开启发送功能不能为空")
    private Boolean open;

}
